﻿<!DOCTYPE html>
<html>

<head id="Head1" runat="server">
  <title></title>
  <link rel="Shortcut Icon" href="../images/aecc.ico" type="image/x-icon" />
  <script type="text/javascript" src="../Scripts/crypto-js.min.js"></script>
  <script type="text/javascript" src="../Scripts/secret.js"></script>
  <script type="text/javascript">
    function getParam(name) {
      try {
        var url = window.document.location.href;
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = url.split('?')[1].match(reg);
        if (r != null) {
          return r[2];
        }
        return "";
      } catch (e) {
        return "";
      }
    }
  </script>
</head>

<body>
  <!--[if lt IE 9]>
    <script type="text/javascript">
      var employeename = getParam("employeename");
      var url = "http://10.15.7.24:9001/#/login?employeename=" + employeename;
      var objShell = new ActiveXObject("WScript.Shell");
      var cmd = 'cmd.exe /c start chrome " ' + url;
      try {
        objShell.Run(cmd, 0, true);
      } catch (e) {
        //alert("请联系管理员安装Chrome浏览器！");
        window.open(url, '_self');
      }
      window.opener = null;
      window.open('', '_self');
      window.close();
    </script>  
  <![endif]-->
  <script type="text/javascript">
    var employeename = getParam("employeename");
    var url = "http://10.15.7.24:9001/#/login?employeename=" + employeename;
    window.open(url, '_self');
  </script>
</body>

</html>